#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>

int main(){
    int i;
    int len = 10;
    char out[len];
    struct timespec tv;
    srand((unsigned int)time(0));
    for(i=0;i<len-1;i++){
        out[i] = (char)(rand()%26+'a');
    }
    for(;;){
        printf("ping input plugin\n");
        if (fflush(stdout))
        perror("foo");
//        write(1,out,strlen(out));
        tv.tv_sec = 1;
        tv.tv_nsec = 0;
        nanosleep(&tv,NULL);
    }
    return 0;
}
